package com.design.patterns.list.prototype.up;

import java.io.Serializable;

/**
 * @author Wangzhiwen
 */
public class DeepCloneTarget implements Cloneable, Serializable {

    private String value;

    public DeepCloneTarget(String value) {
        this.value = value;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }

    @Override
    public String toString() {
        return "DeepCloneTarget{" +
                "value='" + value + '\'' +
                '}';
    }
}
